import $http from "@/utils/http";

export async function getMenuListApi(){
    return await $http.get("/menu/list");
}
export async function addMenuApi(param){
    return await $http.post("/menu/add",param);
}
export async function editMenuApi(param){
    return await $http.post("/menu/update",param);
}
export async function deleteMenuApi(param){
    return await $http.delete(`/menu/delete/${param}`);
}
export async function getMenuParentListApi(){
    return await $http.get("/menu/parent");
}